package entity;

import java.sql.ResultSet;

/**
 * Created by LLAP on 2017/12/28.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class User extends Entity {

    public User() {
        this(null);
    }
    public User(ResultSet r) {
        super(
                "agent",
                new String[] {"UID", "用户名"}
        );
        super.setDataSource(r);
        super.addData();
    }

    @Override
    public boolean isCellEditable(int row, int column) {
        return false;
    }

    @Override
    public void add() {
        super.add();
    }
}
